<?php
$params = array();
foreach((array) system_controller_front::getInstance()->getRequest()->getParams() AS $key => $value) {
	if($key == 'controller') $key = 'category';
	$params[$key] = $value;
}
?>
<form method="post" action="<?php echo $this->url('ajax/comment');?>">
<?php
foreach($params AS $key => $value) {
	echo $this->form()->hidden($key, $value);
}
echo $this->form()->hidden('author', $this->language('网友') . rand(100,999));
echo $this->form()->hidden('reply_id', 0) . "\n";
?>
<div class="box comment">
	<div class="hd">
		<h3><?php echo $this->language('好图评论');?></h3>
	</div>
	<div class="bd">
	
	</div>
	<div class="bd">
		<p class="gray"><?php echo $this->language('文明上网，理性发贴！')?></p>
		<ul>
			<li class="text"><textarea style="width:99%;margin:0;" name="message"></textarea></li>
			<li class="bar">
				<button type="submit" name="submit" value="submit"><?php echo $this->language('提交');?></button>
			</li>
		</ul>
	</div>
	<div class="clear"></div>
</div>
</form>
